package com.zlyx.easy.api.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.zlyx.easy.api.extension.ApiReaderExtension;
import com.zlyx.easy.api.extension.ReaderExtension;

/**
 * Api配置
 * 
 * @Auth 赵光
 * @Describle
 */
@Configuration
public class ApiConfigurer {

	@Bean
	@ConditionalOnMissingBean
	public ApiProperties configApi() {
		return new ApiProperties();
	}

	@Bean
	@ConditionalOnMissingBean
	public ReaderExtension ApiReaderExtension() {
		return new ApiReaderExtension();
	}
}
